/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.shop.entity.address;

import com.thinkgem.jeesite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 收货地址Entity
 * @author 兰建斌
 * @version 2019-05-15
 */
public class Address extends DataEntity<Address> {
	
	private static final long serialVersionUID = 1L;
	private User user;		// 用户ID
	private String address;		// 地址
	private String phone;		// 电话号码
	private String defaul;
	
	public Address() {
		super();
	}

	public Address(String id){
		super(id);
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=0, max=255, message="地址长度必须介于 0 和 255 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=0, max=255, message="电话号码长度必须介于 0 和 255 之间")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getDefaul() {
		return defaul;
	}

	public void setDefaul(String defaul) {
		this.defaul = defaul;
	}
	
}